package cn.ibizlab.odoo.core.odoo_asset.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_asset.domain.Asset_asset;
import cn.ibizlab.odoo.core.odoo_asset.filter.Asset_assetSearchContext;

/**
 * 实体[Asset_asset] 服务对象接口
 */

public interface IAsset_assetService{
     boolean update(Asset_asset asset_asset) ;
     Asset_asset get(Integer id) ;
     Asset_asset get(Asset_asset asset_asset) ;
     boolean remove(Integer id) ;
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;
     void createBatch(List<Asset_asset> asset_assets, int batchSize) ;
     boolean create(Asset_asset asset_asset) ;
     void updateBatch(List<Asset_asset> asset_assets, int batchSize) ;

    /**
     * 查询集合 默认查询
     */
    Page<Asset_asset> searchDefault(Asset_assetSearchContext context) ;

    /**
     * 根据State of Asset查询
     */
     Page<Asset_asset> selectByOdoo_accounting_state(Integer id) ;

    /**
     * 根据State of Asset查询
     */
     Page<Asset_asset> selectByOdoo_finance_state(Integer id) ;

    /**
     * 根据State of Asset查询
     */
     Page<Asset_asset> selectByOdoo_maintenance_state(Integer id) ;

    /**
     * 根据State of Asset查询
     */
     Page<Asset_asset> selectByOdoo_manufacture_state(Integer id) ;

    /**
     * 根据State of Asset查询
     */
     Page<Asset_asset> selectByOdoo_warehouse_state(Integer id) ;

    /**
     * 根据联系人查询
     */
     Page<Asset_asset> selectByOdoo_manufacturer(Integer id) ;

    /**
     * 根据联系人查询
     */
     Page<Asset_asset> selectByOdoo_vendor(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Asset_asset> selectByOdoo_create(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Asset_asset> selectByOdoo_user(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Asset_asset> selectByOdoo_write(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Asset_asset convert2Domain(cn.ibizlab.odoo.core.client.model.Iasset_asset model ,Asset_asset domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Iasset_asset convert2Model(Asset_asset domain , cn.ibizlab.odoo.core.client.model.Iasset_asset model);

}
